package com.yanqu.road;

import com.yanqu.road.utils.config.Config;
import com.yanqu.road.web.listen.GameWebInitListener;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;

@SpringBootApplication
@ServletComponentScan
public class BussinessRoadWebApplication {
    public static void main(String[] args) {
        Config.ParseArgs(args);
        SpringApplication.run(BussinessRoadWebApplication.class, args);
        if (!GameWebInitListener.webServerInit()) {
            System.exit(-1);
        }
        System.err.println("gameWeb 启动成功！");
    }
}
